<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
</head>
<body>
<h1 style="text-align: center">用户列表</h1>
<button id="btn" onclick="search()">搜索</button>
<div class="layui-row">
    <div class="layui-col-md8 layui-col-md-offset2">
        <form class="layui-form layui-row layui-col-space16">
            <div class="layui-col-md4">
                <div class="layui-input-wrap">
                    <div class="layui-input-prefix">
                        <i class="layui-icon layui-icon-username"></i>
                    </div>
                    <input type="text" name="username" value="" placeholder="用户名" class="layui-input" lay-affix="clear">
                </div>
            </div>
            <div class="layui-col-md4">
                <div class="layui-input-wrap">
                    <input type="text" name="name" placeholder="真实姓名" lay-affix="clear" class="layui-input">
                </div>
            </div>
            <div class="layui-btn-container layui-col-xs12">
                <button class="layui-btn" lay-submit lay-filter="demo-table-search">Search</button>
                <button type="reset" class="layui-btn layui-btn-primary">Clear</button>
                <button class="layui-btn" type="button" id="add">添加</button>
            </div>
        </form>
    </div>
</div>
<div class="layui-row">
    <div class="layui-col-md8 layui-col-md-offset2">
        <table class="layui-hide" id="ID-table-demo-data" lay-filter="test"></table>
    </div>
</div>

<script>
    const ctx = '[[${#request.contextPath}]]';
</script>
<script th:src="@{/layui/layui.js}"></script>
<script type="text/html" id="barDemo">
    <div class="layui-clear-space">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">
            删除
        </a>
    </div>
</script>
<script th:src="@{/custom/user/user.js}"></script>
</body>
</html>